xquery version "1.0-ml";
import module namespace xqmvc = "http://scholarsportal.info/xqmvc/core" at "../../../system/xqmvc.xqy";
declare variable $data as map:map external;

xdmp:set-response-content-type('application/xhtml+xml; charset=utf-8'),

'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title>LangEdit</title>
		<link rel="stylesheet" type="text/css" media="screen" href="{ $xqmvc:plugin-resource-dir }/css/style.css"/>
	</head>
	<body onload="document.getElementById('focus').focus()">
		<div id="hd">
			<div style="float: left; width: 49%; text-align: left;">
				LangEdit
			</div>
			<div style="float: right; width: 49%; text-align: right;">
				<a href="http://spotdocs.scholarsportal.info/display/MarkLogic/LangEdit">help</a>
			</div>
			<div style="clear: both;">{' '}</div>
		</div>
		
		<hr />
		
		<div class="bd">{ map:get($data, 'body') }</div>
		
		<hr />
		
		<div id="ft">
			Ontario Council of University Libraries
		</div>
	</body>
</html>